<?php
/**
 * Modify Screen for Contact Interview Type
 * 
 */
use Fox\Html\DropList;
use Fox\Html\CheckBox;
use Fox\Html\Input;
use Fox\Generator;

use Fox\Popup\Modify;

$xview = Xview::instance();
$area = Xview::instance()->val('area');
if(empty($area)) {
	$callback = Generator::ajaxReload('contentCol');
} elseif($area == 'contact') {
	$callback = Generator::ajaxReload('company_size_type');
}
$popup = new Modify('pModify',
					Hive\Contact\Wish\Company\Size::className(),
					array(Hive::BUNDLE,Hive::ADD_A_NEW_COMPANY_SIZE),
					null,
					null,
					null,
					null,
					null,
					$callback
				);
$popup->block()
		->add(new Input('label',true))->parentObject()
		->add(new CheckBox('active',true))->parentObject()
		->add(new Input('language',true,Xview::instance()->language()))->hidden()->parentObject()
		->add(new Input('standard',true,0))->hidden();			
return $popup->display();